home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / tools / amiga / 3d_tools / irit40s.lha / Irit / makefile.sas < prev    next >
Encoding:
Makefile  |  1993-12-30  |  5.5 KB  |  169 lines

  1. #
  2. # This make file is the main make file of the IRIT solid modeller and its
  3. # auxilary tools, under UNIX.
  4. #
  5. # Do the following before run make:
  6. #
  7. # 1. Edit 'makeflag.sas' for the exact path names to be used for libraries and
  8. #    binaries. Set the proper C compiler and graphics library flags in
  9. #    makeflag.sas as well.
  10. # 2. Edit the makefiles in all subdirectories. Replace the text between
  11. #    "#-----" with the contents of makeflag.sas. Do the same for this file,
  12. #    and make sure that the MAKE variable points to the correct make program.
  13. # 3. The gif.lib is not provided here. See the documentation on how to get
  14. #    it. Without it poly3d-r cannot be built.
  15. #    The make files are set as if gif.lib IS NOT PROVIDED.
  16. #
  17. #                Gershon Elber, Nov. 1991
  18. #                Kriton Kyrimis, Dec. 1993
  19. #
  20.  
  21. #-----
  22. #
  23. # The XXX_DIR variables below MUST have ABSOLUTE path. Since this file
  24. # is sourced from several directories relative path specification will
  25. # be simple wrong.
  26. #
  27.  
  28. SRC_DIR = Boot:Home/T/Irit
  29. #
  30. # All libraries created will be installed into the LIB_DIR directory.
  31. #
  32. LIB_DIR = $(SRC_DIR)/lib
  33.  
  34. #
  35. # All includes files associated with the installed libraries will be
  36. # installed into the INC_DIR directory.
  37. #
  38. INC_DIR = $(SRC_DIR)/inc
  39.  
  40. #
  41. # All binaries created will be installed into the BIN_DIR directory.
  42. #
  43. BIN_DIR = $(SRC_DIR)/bin
  44.  
  45. #
  46. # Uncomment the correct set of variables to be used or modify it for
  47. # your system.
  48. #
  49. # -D flags:
  50. #
  51. # -D__GL__ - if your system supports gl graphics library (SGI 4d & IBM R6000).
  52. #
  53. # -D__X11__ - if your system supports X11. Only one of __GL__ or __X11__ should
  54. #    be used.
  55. #
  56. #  Emulation to the following function are available by defining the
  57. #  following. Look at misc_lib/xgeneral.c/h for implementation.
  58. # -DGETCWD - if getcwd is not defined in this system.
  59. # -DSTRSTR - if strstr is not defined in this system.
  60. # -DSTRDUP - if strdup is not defined in this system.
  61. # -DSTRICMP - if stricmp and strincmp are not defined in this system.
  62. #
  63. # -DTIMES - if times is defined in your system, otherwise uses time.
  64. #
  65. # -DRAND - if the (s)rand random number generator exists.
  66. # -DRAND48 - ?rand48 random number generators exists.
  67. #    If non of RAND or RAND48 are defined, (s)random is used.
  68. #
  69. # -DNO_VOID_PTR - if your C compiler does not support (void *).
  70. #
  71. # -DUSE_VARARGS - if your system does not have stdarg.h and have the old
  72. #    varargs.h.
  73. #
  74. # -DNO_CONCAT_STR - if 'char *p = "This is" "one string";' is illegal.
  75. #
  76. # -DGRAPDRVS - any combination of of 'xgldrvs', 'xgladap', 'x11drvs'.
  77. #
  78. # Other, possibly useful defines (for c code development):
  79. #
  80. # -DDEBUG - for some debugging functions in the code (that can be invoked
  81. #        from a debugger).
  82. #
  83.  
  84. #
  85. # Flags for Amiga using SAS/C
  86. #
  87. # Use DEFINE=M68881 if you have a 68881/68882/68040
  88. # Use DEFINE=MIEEE if you want to use the IEEE math library
  89. # Use DEFINE=MFFP if you want to use the FFP math library
  90. #
  91. CC = sc
  92. DFLAGS = DEFINE=M68881 DEFINE=RAND48
  93. CFLAGS = $(DFLAGS) CPU=68040 MATH=68882 NOSTACKCHECK STRMERGE IGNORE=79
  94. MORELIBS = $(LIB_DIR)/amg.lib
  95. GRAPDRVS =nuldrvs
  96.  
  97. #
  98. # Default rule for compilation.
  99. #
  100. .c.o:
  101.     $(CC) $(CFLAGS) IDIR= IDIR=$(INC_DIR) IDIR=$(SRC_DIR)/amigalib $<
  102.  
  103. #
  104. # All libraries.
  105. LIBS = $(LIB_DIR)/geom.lib $(LIB_DIR)/prsr.lib $(LIB_DIR)/cagd.lib\
  106.        $(LIB_DIR)/misc.lib #$(LIB_DIR)/gif.lib
  107. #-----
  108.  
  109. MAKE = smake
  110.  
  111. #
  112. # Uncomment the following variable to only see the actions taken.
  113. #
  114. # VIEW_ONLY = -n
  115.  
  116. all:     binaries doc init
  117.  
  118. #
  119. # Print info regarding initialization.
  120. #
  121. init:
  122.     @echo ""
  123.     @echo "Before executing the test suite and/or any usage of this"
  124.     @echo "package you will have to issue the following commands:"
  125.     @echo ""
  126.     @echo "path add $(BIN_DIR)"
  127.     @echo "setenv IRIT_PATH $(BIN_DIR)/"
  128.     @echo ""
  129.     @echo "and optionally the following commands:"
  130.     @echo ""
  131.     @echo "setenv IRIT_DISPLAY *"amidrvs -s-*""
  132.     @echo "setenv IRIT_BIN_IPC 1"
  133.     @echo "setenv IRIT_SERVER_PORT Irit"
  134.     @echo ""
  135.     @echo "or similar."
  136.  
  137. binaries:
  138.     @execute makescr.ami amigalib $(MAKE) $(VIEW_ONLY) -f makefile.sas install
  139.     @execute makescr.ami misc_lib $(MAKE) $(VIEW_ONLY) -f makefile.sas install
  140.     @execute makescr.ami cagd_lib $(MAKE) $(VIEW_ONLY) -f makefile.sas install
  141.     @execute makescr.ami prsr_lib $(MAKE) $(VIEW_ONLY) -f makefile.sas install
  142.     @execute makescr.ami geom_lib $(MAKE) $(VIEW_ONLY) -f makefile.sas install
  143.     @execute makescr.ami grapdrvs $(MAKE) $(VIEW_ONLY) -f makefile.sas install
  144.     @execute makescr.ami irit $(MAKE) $(VIEW_ONLY) -f makefile.sas install
  145.     @execute makescr.ami poly3d-h $(MAKE) $(VIEW_ONLY) -f makefile.sas install
  146.     @execute makescr.ami illustrt $(MAKE) $(VIEW_ONLY) -f makefile.sas install
  147.     @execute makescr.ami iritfltr $(MAKE) $(VIEW_ONLY) -f makefile.sas install
  148.     @execute makescr.ami docs $(MAKE) $(VIEW_ONLY) -f makefile.sas install
  149. #    @execute makescr.ami poly3d-r $(MAKE) $(VIEW_ONLY) -f makefile.sas install
  150.  
  151. #
  152. # Make hardcopy documentation.
  153. #
  154. doc:
  155.     @execute makescr.ami docs $(MAKE) $(VIEW_ONLY) -f makefile.sas\
  156.     irit.tex irit.doc
  157.  
  158. clean:
  159.     delete QUIET amigalib/\#?.lib amigalib/\#?.o misc_lib/\#?.lib\
  160. misc_lib/\#?.o cagd_lib/\#?.lib cagd_lib/\#?.o prsr_lib/\#?.lib prsr_lib/\#?.o\
  161. geom_lib/\#?.lib geom_lib/\#?.o grapdrvs/amidrvs grapdrvs/nuldrvs\
  162. grapdrvs/\#?.o irit/irit irit/\#?.o poly3d-h/poly3d-h poly3d-h/\#?.o\
  163. lib/cagd.lib lib/geom.lib lib/misc.lib lib/prsr.lib
  164.     delete QUIET illustrt/illustrt illustrt/\#?.o iritfltr/irit2ray\
  165. iritfltr/irit2ps iritfltr/irit2xfg iritfltr/irit2nff iritfltr/dat2irit\
  166. iritfltr/dxf2irit iritfltr/irit2dxf iritfltr/irit2scn iritfltr/irit2plg\
  167. iritfltr/skeletn1 iritfltr/\#?.o docs/irit.tex docs/irit.doc docs/irit.hlp\
  168. docs/\#?.o poly3d-r/poly3d-r poly3d-r/\#?.o
  169.